package thirt.component
{
	import flash.display.Bitmap;
	import flash.display.Shape;
	
	import mx.core.UIComponent;

	public class ProgressUI extends UIComponent
	{
		[Embed(source="style/images/progressBg.png")]
		private var progressCls:Class;
		private var bitmap:Bitmap;
		private var shape:Shape;
		public function ProgressUI()
		{
			super();
			bitmap = new progressCls();
			this.addChild(bitmap);
			
			shape = new Shape;
			this.addChild(shape);
			shape.x = 1;
			shape.y = 1;
		}
		public function set pre(value:Number):void{
			shape.graphics.clear();
			shape.graphics.beginFill(0x8ECAEE,1);
			shape.graphics.drawRect(0,0,73*value,15);
			shape.graphics.endFill();
		}
		
	}
}